package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcMerchantMapper;
import com.csun.cmny.provider.model.domain.OmcMerchant;
import com.csun.cmny.provider.model.dto.merchant.MerchantQueryDto;
import com.csun.cmny.provider.model.vo.Merchant.MerchantVo;
import com.csun.cmny.provider.service.OmcMerchantService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
@Transactional
public class OmcMerchantServiceImpl extends BaseService<OmcMerchant> implements OmcMerchantService {

    @Resource
    private OmcMerchantMapper merchantMapper;
    @Override
    public List<MerchantVo> selectMerchant(MerchantQueryDto merchantQueryDto) {
        return merchantMapper.selectMerchant(merchantQueryDto);
    }
}
